package com.example.happ.service;

import com.example.happ.pojo.Merchant;
import com.example.happ.pojo.StoreMerchant;

import java.util.Map;


public interface MerchantInfoService {
    StoreMerchant insertMerchantInformationByOpenid(String openId, String avatarUrl, String nickName);

    int findMerchantInformationByOpenid(String openId);
    Merchant findAll(int merchant_id);
    Integer countReviewById(int id);
    int updateMerchantInfo(Merchant merchant, Map<String, String> requestBody);

    Merchant selectAmountById(int id);

    boolean updateMerchantAmountInfo(Double amount, int merchantId);

    boolean updateMerchantAmountInfo1(Integer merchantId, Double amount);
}
